package com.itrus.cvm;

import com.itrus.util.RegexUtils;

public class CRLContextConfInfo
{
  private String accountHash;
  private String cAFilePath;
  private String cRLFilePath;
  private String cRLUrl;
  private boolean isNotCheckCRL = false;
  private int[] retryPolicy = { 60, 600, 6000 };
  private boolean timingDownload = false;

  public String getAccountHash()
  {
    return this.accountHash;
  }

  public String getCAFilePath()
  {
    if (this.cAFilePath != null)
      this.cAFilePath = this.cAFilePath.trim();
    return this.cAFilePath;
  }

  public String getCRLFilePath()
  {
    if (this.cRLFilePath == null)
      this.cRLFilePath = RegexUtils.replaceLastIgnoreCase(getCAFilePath(), ".cer|.crt|.pem", ".crl");
    return this.cRLFilePath;
  }

  public String getCRLUrl()
  {
    if (this.cRLUrl != null)
      this.cRLUrl = this.cRLUrl.trim();
    return this.cRLUrl;
  }

  public int[] getRetryPolicy()
  {
    return this.retryPolicy;
  }

  public boolean isNotCheckCRL()
  {
    return this.isNotCheckCRL;
  }

  public boolean isTimingDownload()
  {
    return this.timingDownload;
  }

  public void setAccountHash(String paramString)
  {
    this.accountHash = paramString;
  }

  public void setCAFilePath(String paramString)
  {
    if ((paramString != null) && (!"".equals(paramString)))
      this.cAFilePath = paramString;
  }

  public void setCRLFilePath(String paramString)
  {
    if ((paramString != null) && (!"".equals(paramString)))
      this.cRLFilePath = paramString;
  }

  public void setCRLUrl(String paramString)
  {
    if ((paramString != null) && (!"".equals(paramString)))
    {
      this.cRLUrl = paramString.trim().replaceAll(" ", "%20");
      this.cRLUrl = this.cRLUrl.replaceAll("\"", "%22");
    }
  }

  public void setNotCheckCRL(boolean paramBoolean)
  {
    this.isNotCheckCRL = paramBoolean;
  }

  public void setRetryPolicy(int[] paramArrayOfInt)
  {
    if (paramArrayOfInt != null)
      this.retryPolicy = paramArrayOfInt;
  }

  public void setTimingDownload(boolean paramBoolean)
  {
    this.timingDownload = paramBoolean;
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.itrus.cvm.CRLContextConfInfo
 * JD-Core Version:    0.6.2
 */